import { Entity, PrimaryGeneratedColumn } from "typeorm";
import { Code, DateTime, Digdit, Link, Name } from "../utils";
/**
 * 快手直播间
 */
@Entity({
    name: 'ks_live_room'
})
export class KsLiveRoom {
    @PrimaryGeneratedColumn()
    id: number;

    @Link({ comment: `直播间链接` })
    link: string;

    @Name({ comment: '直播间名称', default: `` })
    name: string;

    @Code({ comment: '直播ID', default: '' })
    stream_id: string;

    @Digdit({ comment: '在线人数', default: 0 })
    online: number;

    @DateTime({ comment: '开奖时间', nullable: true })
    open_time: Date;

    @Name({ default: '', comment: `直播分类` })
    category: string;

    @Digdit({ default: 0, comment: `加入直播间的机器数量` })
    in_room_count: number;

    @Digdit({ default: 0 })
    max_count: number;

    @Name({ default: `` })
    rank: string;

    @Code({default: ``})
    user_id: string;
}

